#!/bin/bash
# run the django fcgi server

sudo ps aux | grep "livingatlas/manage.py runfcgi" | grep -v grep | awk '{system("sudo kill " $2)}'
sudo -u www-data python /usr/local/apps/livingatlas/manage.py runfcgi method=threaded host=127.0.0.1 port=3034
echo successfully restarted LIVING ATLAS

